﻿<!DOCTYPE html>
<html>
<head>
    <title>Scribd Helper for WebMatrix - Start Here</title>
    <link href="content/Site.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
</head>
<body>
    <div class="container">
        <div class="header">
            <img src="content/images/webx-icon.png" alt="WebMatrix" />
            <img src="content/images/scribd-logo.png" alt="Scribd Logo" class="partnerLogo" />
            <h1>
                Microsoft WebMatrix Helpers</h1>
            <h2>
                Scribd Helper - Start Here</h2>
        </div>
        <div class="content">
            <div class="navLinks">
                <a href="startHere.htm">Start Here</a> | <a href="reference.htm">Helper Reference</a>
            </div>
            <h3>
                Introduction</h3>
            <p>
                Microsoft WebMatrix provides an easy way to get started with web development, and
                together with new Razor syntax for ASP.NET Web Pages it includes everything you
                need to get your web site up, running and integrated with many other sites and networks,
                in a short period of time. The WebMatrix helpers are designed to make your life
                easier when creating web sites. They provide you a simple and consistent way of
                performing common web development tasks that otherwise would require a great deal
                of custom coding. With a few lines of code you should be able to secure your web
                site using membership, store information in Windows Azure Storage, integrate your
                site with Facebook, among others things.
            </p>
            <p>
                The <strong>Scribd Helper</strong> for WebMatrix allows you to easily add Scribd documents to
                your site. When the helper is in place, it interacts with the Scribd API and with
                Scribd Reader to easily list your documents, enabling users to view them without
                having to leave your site.                                 
            </p>
            <img src="content/images/scribd-helper.png" height="250" class="centeredImage" alt="Scribd Helper" />
            <h3>
                Getting Started in 60 Seconds</h3>
            <p>
                The helper mainly consists of a <strong>Scribd.cshtml</strong> file, that should
                be placed in the <strong>App_Code</strong> folder of your WebMatrix site, together
                with a <strong>Scribd</strong> folder with some styles. To use the helper follow these steps:</p>
            <ol>
                <li>If you haven't got an Scribd account, <a href="http://www.scribd.com/login">sign
                    up</a> first.</li>
                <li>Once logged in, browse to your <a href="http://www.scribd.com/account/edit#api">
                    account settings page</a>, and make note of your API key.</li>
                <li>Add the following line to the <strong>_AppStart.cshtml</strong> page of your WebMatrix
                    site, replacing the placeholders with your Scribd API key.
                    <pre class="code">
@{
    Scribd.Initialize(apiKey: "{your-api-key}");  
}</pre>
                </li>
                <li>In any WebMatrix page, add the following line to display your Scribd documents:
                    <pre class="code">
@Scribd.GetUserDocumentsWidget()
</pre>
                </li>
            </ol>
            <h3>
                Running the Scribd Helper Sample</h3>
            <p>
                Optionally, you can download a sample WebMatrix web site where you can see the helper
                in action. To download and run it with Microsoft WebMatrix, follow these steps:</p>
            <ol>
                <li>Download the sample site from the helper's <a href="http://scribdhelper.codeplex.com">
                    Codeplex</a> site, Download section. Extract the contents and open the folder in
                    WebMatrix.</li>
                <li>Configure your Scribd API key in the <strong>_AppStart.cshtml</strong> page.</li>
                <li>Run the sample! It contains code samples and examples of each feature provided by
                    the helper.</li>
            </ol>
            <h3>
                More Info</h3>
            <p>
                Don't miss the helper's <a href="http://www.youtube.com/watch?v=eyk4E32FcKs">getting
                    started screencast</a>.
            </p>
            <p>
                You can find more information about the Scribd API in <a href="http://www.scribd.com/developers">
                    http://www.scribd.com/developers</a>.
            </p>
            <p>
                Learn more on WebMatrix, ASP.NET Web Pages and the Razor Syntax <a href="http://www.microsoft.com/web/webmatrix/learn/">
                    with the WebMatrix tutorials</a>.
            </p>
        </div>
        <ul class="footer">
            <li>We're always looking for <a href="mailto:webapp@microsoft.com">bugs, feedback and
                suggestions!</a></li>
            <li>&copy; 2010-2011 Microsoft Corporation. Powered by IIS Express.</li>
        </ul>
    </div>
</body>
</html>
